package cn.muqingfeng.api.to;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class ArticleList2TO implements Parcelable {

	@SerializedName("data")
	private List<Article2TO> articles;

	@SerializedName("list")
	private List<Article3TO> articles3;

	public ArticleList2TO() {
	}

	public ArticleList2TO(Parcel source) {
		this.articles = new ArrayList<Article2TO>();
		source.readTypedList(articles, Article2TO.CREATOR);
		this.articles3 = new ArrayList<Article3TO>();
		source.readTypedList(articles3, Article3TO.CREATOR);
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeTypedList(articles);
	}

	public static final Creator<ArticleList2TO> CREATOR = new Creator<ArticleList2TO>() {

		@Override
		public ArticleList2TO[] newArray(int size) {
			return new ArticleList2TO[size];
		}

		@Override
		public ArticleList2TO createFromParcel(Parcel source) {
			return new ArticleList2TO(source);
		}
	};

	public List<Article2TO> getArticles() {
		return articles == null ? new ArrayList<Article2TO>() : articles;
	}

	public void setArticles(List<Article2TO> articles) {
		this.articles = articles;
	}

	public List<Article3TO> getArticles3() {
		return articles3 == null ? new ArrayList<Article3TO>() : articles3;
	}

	public void setArticles3(List<Article3TO> articles3) {
		this.articles3 = articles3;
	}

}
